<?php

require_once("../includes/common.inc.php");
global $wpdb;

/*$sql = "
SET FOREIGN_KEY_CHECKS=0;
TRUNCATE wp_rsspckr_rss_post;
TRUNCATE wp_rsspckr_rss_post_image;
TRUNCATE wp_rsspckr_rss_post_tag;
TRUNCATE wp_rsspckr_rss_tag;
UPDATE wp_rsspckr_rss_info SET last_modified_date = NULL;
SET FOREIGN_KEY_CHECKS=1;
";*/


$sql = "SET FOREIGN_KEY_CHECKS=0;";
$wpdb->query( $sql );
$sql = "TRUNCATE wp_rsspckr_rss_post;";
$wpdb->query( $sql );
$sql = "TRUNCATE wp_rsspckr_rss_post_tag;";
$wpdb->query( $sql );
$sql = "TRUNCATE wp_rsspckr_rss_tag;";
$wpdb->query( $sql );
$sql = "UPDATE wp_rsspckr_rss_info SET last_modified_date = NULL;";
$wpdb->query( $sql );
$sql = "SET FOREIGN_KEY_CHECKS=1;";
$wpdb->query( $sql );


//$wpdb->print_error();